package com.gitee.wsl.mathematics.matrix.mat

import com.gitee.wsl.io.dataproxy.DataProxy
import com.gitee.wsl.io.dataproxy.asProxy


open class Mat(
    rowCount: Int,
    colCount: Int,
    proxy: DataProxy<Double> = DoubleArray(rowCount * colCount).asProxy()
): AbstractMatrix<Mat>(rowCount, colCount, proxy) {

    override val self get() = this

    override fun toMutable() =  MutableMat(rowCount, colCount, proxy)

    override fun create(values: List<Double>): Mat = Mat(rowCount,colCount,proxy = values.asProxy())

}


